import axios from "axios";
const instance = axios.create({
    baseURL: 'http://47.94.6.186:3001/'
  });
  instance.interceptors.request.use((config)=>{
    if (localStorage.getItem('token')) {
      config.headers.token = localStorage.getItem('token')
    }
    return config
  }),
  (err)=>{
    return Promise.reject(err)
  }
  export default instance